package cn.wx.sentopen;

import cn.wx.domain.User;
import feign.hystrix.FallbackFactory;

public class UserFeignClientFallbackFactory implements FallbackFactory<SentienlOpenfeign> {
    @Override
    public SentienlOpenfeign create(Throwable throwable) {
        return new SentienlOpenfeign() {
            @Override
            public User getUser(Long id) {
                return new User(-1L,"熔断了","哈哈哈哈哈");
            }
        };
    }
}
